package com.cheng.controller;

import com.cheng.pojo.DataDictionary;
import com.cheng.service.datadictionary.DataDictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@SuppressWarnings("all")
@RequestMapping(value = "/data")
public class DataDictionaryController {
    @Autowired
    private DataDictionaryService dataDictionaryService;

    @RequestMapping(value = "/flatform")
    @ResponseBody
    public List<DataDictionary> getFlatform() {
        List<DataDictionary> flatform = dataDictionaryService.getAllFlatform();
        return flatform;
    }
}
